package com.ruoyi.ruoyiyinzheng.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 物料供应商业务对象
 *
 * @author ruoyi
 * @date 2023-09-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class StMaterialSupplierBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long supplierId;

    /**
     * 编码
     */
    @NotBlank(message = "编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 地址
     */
    private String address;

    /**
     * 发展日期
     */
    private Date developmentDate;

    /**
     * 地区名称
     */
    private String region;

    /**
     * 电话
     */
    private String phone;

    /**
     * 联系人
     */
    private String contacts;

    /**
     * 备注
     */
    private String remark;


}
